package com.ruoyi.project.system.main.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.project.system.detail.domain.ScoreDetail;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 得分主对象 score_main
 * 
 * @author ruoyi
 * @date 2021-02-22
 */
public class ScoreMain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 组织编号 */
    private Long deptId;

    /** 网格员编号 */
    private Long userId;

    /** 总得分 */
    private Long totalScore;

    /** 得分批次号 */
    private String scoreNumber;

    /** 得分时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date scoreTime;

    /** 得分详细 */
    private ScoreDetail scoreDetail;

    /** 部门名称 */
    private String deptName;

    /** 用户名 */
    private String userName;


    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public ScoreDetail getScoreDetail() {
        return scoreDetail;
    }

    public void setScoreDetail(ScoreDetail scoreDetail) {
        this.scoreDetail = scoreDetail;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setTotalScore(Long totalScore)
    {
        this.totalScore = totalScore;
    }

    public Long getTotalScore()
    {
        return totalScore;
    }
    public void setScoreNumber(String scoreNumber)
    {
        this.scoreNumber = scoreNumber;
    }

    public String getScoreNumber()
    {
        return scoreNumber;
    }
    public void setScoreTime(Date scoreTime)
    {
        this.scoreTime = scoreTime;
    }

    public Date getScoreTime()
    {
        return scoreTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("userId", getUserId())
            .append("totalScore", getTotalScore())
            .append("scoreNumber", getScoreNumber())
            .append("scoreTime", getScoreTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
